package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetAllocateQueryDto;
import com.group.eams.pojo.entity.AssetAllocate;
import com.group.eams.pojo.vo.AssetAllocateListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【asset_allocate(资产调拨表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.AssetAllocate
*/
public interface AssetAllocateMapper extends BaseMapper<AssetAllocate> {
    Page<AssetAllocateListVo> findAssetAllocateByWhere(Page<AssetAllocateListVo> page, @Param("assetAllocateQueryDto") AssetAllocateQueryDto assetAllocateQueryDto);
    // 根据申请单号批量获取外键asset_id
    List<Long> getAssetIds(String applicationNum);
    // 根据申请单号查询
    AssetAllocate findAllocateByNum(String applicationNum);
}
